package com.thzy.bbs.google;

import com.google.firebase.iid.FirebaseInstanceId;
import com.google.firebase.iid.FirebaseInstanceIdService;
import com.thzy.bbs.activity.LoginActivity;

/**
 * fcm令牌处理
 *
 * @author Lirui
 * @date 2017/1/3 16:20
 */

public class FCMServiceId extends FirebaseInstanceIdService {

    /**
     * 注册成功调用
     */
    @Override
    public void onTokenRefresh() {
        super.onTokenRefresh();
        // Get updated InstanceID token.
        LoginActivity.TOKEN = FirebaseInstanceId.getInstance().getToken();
    }


}
